package com.niiwoo.civet.account.enums;

import com.niiwoo.tripod.provider.exception.NoSuchEnumValueException;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 
 * @author liaojunjun
 *
 */
@AllArgsConstructor
@Getter
public enum LendTradeAmountTypeEnum {
	INVEST((byte) 1, "投资金额"), 
	GUARANTEE_FEE((byte) 2, "担保费"), 
	ARBITRATION_FEE((byte) 3, "预仲裁费"), 
	BORROW_PLATFORM_FEE((byte) 4, "借款平台服务费");

	private Byte value;
	private String desc;

	public static LendTradeAmountTypeEnum enumOf(Byte code) {
		for (LendTradeAmountTypeEnum lendTradeAmountType : values()) {
			if (lendTradeAmountType.value.equals(code)) {
				return lendTradeAmountType;
			}
		}
		throw new NoSuchEnumValueException("LendTradeAmountTypeEnum:" + code);
	}

}
